class Login {
	constructor(options) {
		this.provider = null
		this.defOptions = {} //默认配置项
		this.options = Object.assign(this.defOptions,options) //合并配置项
		
		//实例化即调用
		
		this.toLogin()
	}
	toLogin(){
		return new Promise((resolve,reject)=>{
			this.getProvider()
		})

	}
	login(opt={}){
			console.log('进行登录操作')
		}
	getProvider(){
		
		uni.getProvider({
			service: 'oauth',
			success:  (res)=> {
				console.log(res,'厂商信息')
				this.login()
			}
		});
	}
}


export default	Login

